﻿@if (Request.IsAuthenticated)
{
    <text>
        <li class="snapped"><a href="#"><b>5</b> Snaps</a></li>
        <li>@Html.ActionLink(User.Identity.Name, "Index", "Profile")</li>
@*    Hello, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
        {
            @Html.AntiForgeryToken()
            *@<li><a href="javascript:document.getElementById('logoutForm').submit()">Sign out</a></li>
@*        }*@
    </text>
}
else
{
    <li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
    <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    <li>@Html.ActionLink("Business", "Index", "Profile")</li>
}
